package com.adley.dubbo.provider.service;

import com.adley.dubbo.inter.BaseService;
import com.adley.dubbo.inter.IItemService;
import com.adley.dubbo.pojo.Item;
import com.adley.dubbo.pojo.query.ItemQuery;
import com.apache.dubbo.config.annotation.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Service(version = "${service.version}")
public class ItemService extends BaseService implements IItemService {
    @Override
    public List<Item> queryItemList(ItemQuery itemQuery) {
        Item item = new Item().setItemName("test001").setItemPrice(BigDecimal.valOf(100));
        List<Item> result = new ArrayList<>();
        result.add(item);
        return result;
    }
}